<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of FormListView
 *
 * @author mateusz.ledzewicz
 */
class NetworkScreen extends IndexView {
    //put your code here
    protected function chooseView($name){

        $type = (isSet($_GET[ConfigInput::actionGet])) ? $_GET[ConfigInput::actionGet] : null;
        switch($type){
            case ConfigInput::actionList:
                $this->loadContent('networkList.html');
                $this->listLoad();
            break;
            case ConfigInput::actionEdit:
                $this->loadContent($name.'Form.html');
                $this->formLoad();
            break;
            case ConfigInput::actionDel:
                $this->loadContent($name.'Del.html');
                $this->delLoad();
            break;
            default:
                $this->loadContent($name.'List.html');
                $this->listLoad();
            break; 
        }
    }
    
    protected  function listLoad() {}
    protected  function formLoad() {}
    protected  function delLoad() {}
}

?>
